package com.mall.seckill_mall.service;

import com.mall.seckill_mall.common.Result;
import com.mall.seckill_mall.entity.User;

public interface UserService {

    User getUser(String userId);

    boolean registerUser(User user);

    User loginUser(String userId, String userPassWord);

    void updatePassWord(String userId, String oldPassWord, String passWord);

    double updateBalance(String userId, double balance);

    User getUserByToken(String userToken);

    void setUserByToken(String userToken, User user);

    void deleteUserByToken(String userToken);
}
